package cn.iocoder.yudao.module.picturebook.controller.admin.readingrecord.vo;

import cn.iocoder.yudao.module.picturebook.dal.dataobject.book.BookDO;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import io.swagger.v3.oas.annotations.media.Schema;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 用户阅读记录分页 Request VO")
@Data
public class ReadingRecordPageReqVO extends PageParam {

    @Schema(description = "关联用户", example = "19742")
    private Long userId;

    @Schema(description = "关联书籍", example = "18594")
    private BookDO book;

    @Schema(description = "阅读日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDate[] readDate;

    @Schema(description = "阅读时长（分钟）")
    private Integer duration;

    @Schema(description = "更新时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] CreateTime;

}